Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

orderwatch: Update lastUpdated and fillableTakerAssetAmount for order in DB #386

Merged
merged 8 commits into from
Sep 5, 2019

Conversation

fabioberger
Copy link
Contributor

Fixes: #190

Currently, we aren't updating an orders fillableTakerAssetAmount nor it's lastUpdated timestamp in the DB when processing a contract event impacting it unless it is being unwatched or re-watched. This PR makes it such that we always update an order's DB entry, no matter what the event so that the lastUpdated and fillableTakerAssetAmount in the DB is always accurate.

@fabioberger fabioberger self-assigned this Sep 3, 2019
zeroex/orderwatch/order_watcher.go Outdated Show resolved Hide resolved
zeroex/orderwatch/order_watcher.go Outdated Show resolved Hide resolved
@albrow
Copy link
Contributor

albrow commented Sep 5, 2019

@fabioberger I think you meant to pass the transaction through to generateOrderEventsIfChanged?

…lso encompasses the order reads, not just the writes
@albrow albrow merged commit b7d845a into development Sep 5, 2019
@albrow albrow deleted the fix/missingLastUpdatedUpdates branch September 5, 2019 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

orderwatch: Missing updates to order lastUpdated in DB
2 participants